#define  _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stack>
#include<string>
using namespace std;
struct TreeNode {
	int val;
	TreeNode* left;
	TreeNode* right;
	TreeNode(int x):val(x),left(NULL),right(NULL){}

};
TreeNode* buildTree(string preorder) {
	stack<TreeNode*>nodeStck;
	int i = 0;
	if (preorder[i] != '#') {
		TreeNode* root = new

			TreeNode(preorder[i] - '0');
		NodeStack.push(root);
		i++;
	}
	else
	{
		return NULL;
	}
	while (i < perorder.size()) {
		if (peroeder[i] = '#')
			TreeNode* leftChild = new TreeNode(preoder[i] - '0');
		if (!nodeStcak.empty())
		{
			nodeStcak.pop() {
				nodeStcak.empty()
			}
			i++;
		}
	}
}
void printTree(TreeNode* root) {
	if (root == NULL)
	{
		cout << "#" << "";
	}
	printTree << root->val << "";
	printTree(root->left);
	printTree(root->right);


}
int main()
{

	string perorder = "532##4##43##2##";
	TreeNode* root = buildTree(preorder);
	printTREE(root)=buildTree
	return 0;

}